package com.jhws.business.car.bo;

import javax.persistence.*;
import java.util.Date;

@Table(name = "car_parking_lot")
@Entity
public class ParkingLot {
    @Id
    @Column(name = "park_id")
    private String parkId; // id
    @Column(name = "park_name")
    private String parkName; //停车场名称
    @Column(name = "description")
    private String description; //描述
    @Column(name = "creation_time")
    private Date creationTime; //创建时间
    @Column(name = "comm_code")
    private String commCode; //小区编号
    @Column(name = "park_space_num")
    private int parkSpaceNum; //总车位
    @Column(name = "guest_num")
    private int guestNum; //访客（临停）车位数
    @Column(name = "guest_remain_num")
    private int guestRemainNum; //访客（临停）剩余车位数
    @Column(name = "month_card_num")
    private int monthCardNum; //月卡车位
    @Column(name = "month_card_remain_num")
    private int monthCardRemainNum; //月卡剩余车位
    @Column(name = "locked_park_number")
    private int lockedParkNumber; //已锁车位
    @Column(name = "pay_customer_id", columnDefinition = "BIGINT(20) default 0")
    private long payCustomerId; //支付客户ID
    @Column(name = "monthly_rate", columnDefinition = "INT default 0")
    private int monthlyRate; //月卡费率
    @Column(name = "fixed_queue", columnDefinition = "INT default 0")
    private int fixedQueue; //固定消息队列 0：未开启 1：开启
    @Column(name = "real_queue", columnDefinition = "INT default 0")
    private int realQueue; //实时消息队列 0：未开启 1：开启

    public String getParkId() {
        return parkId;
    }

    public void setParkId(String parkId) {
        this.parkId = parkId;
    }

    public String getParkName() {
        return parkName;
    }

    public void setParkName(String parkName) {
        this.parkName = parkName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public int getParkSpaceNum() {
        return parkSpaceNum;
    }

    public void setParkSpaceNum(int parkSpaceNum) {
        this.parkSpaceNum = parkSpaceNum;
    }

    public int getGuestNum() {
        return guestNum;
    }

    public void setGuestNum(int guestNum) {
        this.guestNum = guestNum;
    }

    public int getGuestRemainNum() {
        return guestRemainNum;
    }

    public void setGuestRemainNum(int guestRemainNum) {
        this.guestRemainNum = guestRemainNum;
    }

    public int getMonthCardNum() {
        return monthCardNum;
    }

    public void setMonthCardNum(int monthCardNum) {
        this.monthCardNum = monthCardNum;
    }

    public int getMonthCardRemainNum() {
        return monthCardRemainNum;
    }

    public void setMonthCardRemainNum(int monthCardRemainNum) {
        this.monthCardRemainNum = monthCardRemainNum;
    }

    public int getLockedParkNumber() {
        return lockedParkNumber;
    }

    public void setLockedParkNumber(int lockedParkNumber) {
        this.lockedParkNumber = lockedParkNumber;
    }

    public int getMonthlyRate() {
        return monthlyRate;
    }

    public void setMonthlyRate(int monthlyRate) {
        this.monthlyRate = monthlyRate;
    }

    public long getPayCustomerId() {
        return payCustomerId;
    }

    public void setPayCustomerId(long payCustomerId) {
        this.payCustomerId = payCustomerId;
    }

    public int getFixedQueue() {
        return fixedQueue;
    }

    public void setFixedQueue(int fixedQueue) {
        this.fixedQueue = fixedQueue;
    }

    public int getRealQueue() {
        return realQueue;
    }

    public void setRealQueue(int realQueue) {
        this.realQueue = realQueue;
    }

    @Override
    public String toString() {
        return "ParkingLot{" +
                "parkId='" + parkId + '\'' +
                ", parkName='" + parkName + '\'' +
                ", description='" + description + '\'' +
                ", creationTime=" + creationTime +
                ", commCode='" + commCode + '\'' +
                ", parkSpaceNum=" + parkSpaceNum +
                ", guestNum=" + guestNum +
                ", guestRemainNum=" + guestRemainNum +
                ", monthCardNum=" + monthCardNum +
                ", monthCardRemainNum=" + monthCardRemainNum +
                ", lockedParkNumber=" + lockedParkNumber +
                ", payCustomerId=" + payCustomerId +
                ", monthlyRate=" + monthlyRate +
                ", fixedQueue=" + fixedQueue +
                ", realQueue=" + realQueue +
                '}';
    }
}
